package com.xls.pet.common;

import lombok.Getter;
import lombok.Setter;

@Getter
public enum ResultCode {

    SUCCESS(20000, "成功"),

    ERROR(20001, "失败"),

    NOT_ALLOW_DELETE_ITEM(3000, "此物品无法被删除,请先删除库存"),

    UPLOAD_FILE_ERROR(4001, "上传文件失败"),
    DELETE_FILE_ERROR(4002, "删除文件失败"),
    GET_FILE_ERROR(4002, "获取文件失败");

    @Setter
    private Integer code;

    @Setter
    private String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
